<?php

class SaleForm extends CFormModel
{

    //put your code here
    public $code;

    public function rules()
    {
        return array(
            // name, email, subject and body are required
            array('code', 'required'),
        );
    }

    public function attributeLabels()
    {
        return array(
            'code' => 'Mã'
        );
    }

}
